home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Symbols
/
s-subtract-range-section
< prev
next >
Wrap
Lisp/Scheme
|
1998-08-11
|
583b
|
22 lines
s-subtract-range-section range section pattern
0-based
This function subtract items in given <range> on selectet <section> and output is return.
(setq sym (g-cluster .23 's 0 0 '(0 1 3 6) '(8 7 8 7)))
=> ((a b c d e f g h) (b c d e f g h)
(d e f g h i j k) (g h i j k l a))
(setq range
(p-select
'(0 2 3)
(pick-rnd1 .26 :content 2
(g-integer 0 (l-count :all :content sym)))))
=> ((2 4) (7 2) (4 2))
internally to: ((2 4) (2 7) (2 4))
(s-subtract-range-section range '(0 2 3) sym)
=> ((a b e f g h) (b c d e f g h) (d e k) (g h k l a))